package com.study.system.log.mapper;

import com.study.system.log.domain.Log;
import com.study.system.log.domain.UserLog;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 669
 * @CreateDate 2022/4/20 10:02
 * @Version 1.0
 */
public interface LogMapper {
    //添加log
    int addLog(Log log);

    //通过logid删除
    int delById(@Param("id") int id);

    //通过用户id删除
    int delByUserId(@Param("eid") int eid);


    //通过用户姓名删除
    int delByUsername(@Param("name") String name);

    //查询log
    List<UserLog> selectAllLog();

    //通过name查询log
    List<UserLog> selectBynameLog(@Param("name") String name);


}
